<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CtlLogin.ascx.cs" Inherits="de_kleintjesmarkt.CtlLogin" %>
<div class="wgtLogin">
    <script language="javascript" type="text/javascript" src="js/md5.js"></script>
    <script language="javascript" type="text/javascript" src="js/login.js"></script>
    <h2>Login</h2>
    <div>
        <asp:Literal ID="litNoAccount" runat="server"></asp:Literal>
        <p>E-mail adres</p>
        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="vldtxtEmail1" runat="server" ControlToValidate="txtEmail"
            ErrorMessage="Vul een e-mail adres in.">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="vldtxtEmail2" runat="server" ControlToValidate="txtEmail"
            ErrorMessage="Vul een geldig e-mail adres in." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        <p>Wachtwoord</p>
        <asp:TextBox ID="txtWachtwoord" runat="server" TextMode="Password"></asp:TextBox>
        <asp:CustomValidator ID="vldtxtWachtwoord" runat="server" ClientValidationFunction="validatePassword"
            ControlToValidate="txtWachtwoord" ErrorMessage="Vul een wachtwoord in." ValidateEmptyText="True">*</asp:CustomValidator><br />
        <asp:CheckBox ID="chkbxOnthouden" runat="server" Text="Wachtwoord onthouden" OnCheckedChanged="chkbxOnthouden_CheckedChanged" /><br />
        <asp:HiddenField ID="hfIsHashed" runat="server" Value="0" EnableViewState="False" />
        &nbsp;&nbsp;
        <asp:ValidationSummary ID="vldSummary" runat="server" DisplayMode="List" />
        <br />
        <a href="WachtwoordVergeten.aspx">Wachtwoord vergeten?</a><br />
        <br />
        <asp:Button ID="butLogin" runat="server" OnClick="butSignOn_Click" Text="Login" CssClass="button" />
        <asp:Button ID="butRegistreren" runat="server" Text="Registreren" CssClass="button" OnClick="butRegistreren_Click" CausesValidation="False" />
        <br />
        <br />
        <asp:Literal ID="litMessage" runat="server"></asp:Literal>
        &nbsp;
        &nbsp;&nbsp;
    </div>
</div>